﻿using System;
using System.Windows.Forms;

namespace ApplicationManager
{
    public partial class splashForm : Form
    {
        public splashForm()
        {
            InitializeComponent();
            lblTitle.Text = ModuleManager.ApplicationName;
            lblLicenced.Text = string.Concat(Properties.Resources.Msg_Licensed, " ", SerialManager.SerialData.License);
        }

        protected override void OnShown(EventArgs e)
        {
            timer1.Start();
        }

        private void timer1_Tick(object sender, EventArgs e)
        {
            timer1.Stop();
            this.Close();
        }

        private void Splash_MouseDown(object sender, MouseEventArgs e)
        {
            timer1.Stop();
            this.Close();
        }
    }
}